package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.vo.SpuSaveVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.SpuInfoEntity;

import java.util.Map;

/**
 * spu信息
 *
 * @author liuShiYu
 * @email 2426237645@qq.com
 * @date 2025-03-12 19:07:21
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);



    /**
     * 保存商品信息+额外详细信息****
     * @param spuSaveVo
     */
    void saveSpuInfo(SpuSaveVo spuSaveVo);

    /**
     * 保存spu基本信息****
     * @param spuInfoEntity
     */
    void saveBaseSpuInfo(SpuInfoEntity spuInfoEntity);

    /**
     * 根据条件分页查询商品信息****
     * @param params
     * @return
     */
    PageUtils queryPageByCondition(Map<String, Object> params);
    /**
     * 上架商品*********
     */
    void up(Long spuId);

    /**
     * 根据skuId查询当前商品spu信息****
     * @param skuId
     * @return
     */
    SpuInfoEntity getSpuInfoBySkuId(Long skuId);

}

